package cn.fayang.ymcc.feign;

import cn.fayang.ymcc.doc.CourseDoc;
import cn.fayang.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * feign接口
 */
@FeignClient(value = "service-search",fallbackFactory = CourseSearchFeignClientFallBackFactory.class)
public interface CourseSearchFeignClient {
    @PostMapping("/saveCourse")
    JSONResult saveCourse(@RequestBody CourseDoc doc);
    @PostMapping("/deleteCourse")
    JSONResult deleteCourse(Long id);
}
